﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FluentNHibernate.Mapping;
using OrderingSystem.Domain;

namespace OrderingSystem.Mappings
{
    public class AddressMap : ComponentMap < Address>
    {
        public AddressMap()
        {
            Map(x=>x.Line1).Not.Nullable().Length(50);
            Map(x => x.Line2).Length(50);
            Map(x=>x.ZipCode).Not.Nullable().Length(50);
            Map(x=>x.City).Not.Nullable().Length(50); 
            Map(x=>x.State).Not.Nullable().Length(50);
        }
    }
}
